import {DashboardIcon} from 'tdesign-icons-vue';
import Layout from '@/layouts/index.vue';

export default [
  {
    path: '/product',
    component: Layout,
    redirect: '/product/classify',
    name: 'product',
    meta: {
      title: '产品管理',
       icon: 'icon-product',
    },
    children: [
      {
        path: 'list',
        name: 'ProductList',
        component: () => import('@/pages/product/list/index.vue'),
        meta: {title: '产品库'},
      },
      {
        path: 'applet-index',
        name: 'ProductAppletIndex',
        component: () => import('@/pages/product/applet-index/index.vue'),
        meta: {title: '首页产品'},
      },
      //{
      //  path: 'warehousing',
      //  name: 'ProductWarehousing',
      //  component: () => import('@/pages/product/warehousing/index.vue'),
      //  meta: {title: '入库', icon: 'icon-warehousing'},
      //},
      //{
      //  path: 'outbound',
      //  name: 'ProductOutbound',
      //  component: () => import('@/pages/product/outbound/index.vue'),
      //  meta: {title: '出库', icon: 'icon-outbound'},
      //},
      //{
      //  path: 'count',
      //  name: 'ProductCount',
      //  component: () => import('@/pages/product/count/index.vue'),
      //  meta: {title: '库存管理'},
      //},
      //{
      //  path: 'brand',
      //  name: 'ProductBrand',
      //  component: () => import('@/pages/product/brand/index.vue'),
      //  meta: {title: '品牌管理'},
      //},
      {
        path: 'classify',
        name: 'ProductClassify',
        component: () => import('@/pages/product/classify/index.vue'),
        meta: {title: '分类管理'},
      },
      {
        path: 'unit',
        name: 'ProductUnit',
        component: () => import('@/pages/product/unit/index.vue'),
        meta: {title: '单位管理'},
      },
      //{
      //  path: 'sn',
      //  name: 'ProductSN',
      //  component: () => import('@/pages/product/sn/index.vue'),
      //  meta: {title: 'S/N查询'},
      //},
      {
        path: 'deliver',
        name: 'ProductDeliver',
        component: () => import('@/pages/product/deliver/index.vue'),
        meta: {title: '发货说明'},
      },
      {
        path: 'guarantee',
        name: 'ProductGuarantee',
        component: () => import('@/pages/product/guarantee/index.vue'),
        meta: {title: '保障说明'},
      },
    ],
  },
];
